package 分布式事务.事务A.daoB;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import 分布式事务.事务A.entity.TbWorkA;
import 分布式事务.事务A.entity.TbWorkB;

import java.util.List;

/**
 * 数据访问接口
 */
@Repository
public interface WorkBDao {
	
	@Select("select * from tb_work_b")
	List<TbWorkB> selectAll();
	
	@Insert("insert into tb_work_b(name) values(#{name})")
	int insert(String name);
}
